#include "StdAfx.h"
Model::Model(ModelDesc &desc):GameResource(desc)
{
}

Model::~Model(void)
{
}
void Model::LoadFromFile()
{
	Reader reader(FileName);
	Mesh=reader.GetResc("MESH");
	Material=reader.GetResc("MATERIAL");
	string shapeId=reader.GetNext("SHAPE");
	if(shapeId==string("Box"))
		Shape=Box;
	else if(shapeId==string("Sphere"))
		Shape=Sphere;
	else if(shapeId==string("Cylinder"))
		Shape=Cylinder;
	else Shape=None;
}
void Model::SaveToFile()
{
}